package routers

import (
	"github.com/gin-gonic/gin"
	"week3/controllers"
)

func Router(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/login", controllers.LoginUser) //登录
	}

	shop := r.Group("/shop")
	{
		shop.GET("/list", controllers.GetKeDetail) //联查
		shop.GET("/lists", controllers.KeList)     //列表
		shop.POST("/create", controllers.CreateKe) //新增
	}

}
